//
//  GameLayer.m
//  cocos2dHelloWord
//
//  Created by 勤信为诚 on 11-9-24.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "GameLayer.h"


@implementation GameLayer

-(id) init
{
    self=[super init];
    if (self) {
        CCSprite *sp=[CCSprite spriteWithFile:@"Default.png"];
        
        sp.anchorPoint=CGPointZero;
        
        sp.opacity=100;
        [self addChild:sp z:0 tag:1];
        
        CCLabelAtlas *lbScore = [CCLabelAtlas bitmapFontAtlasWithString:@"Time: 0" fntFile:@"font09.fnt"];
        lbScore.anchorPoint=ccp(1.0,1.0);
        
        lbScore.scale=0.6;
        
        [self addChild:lbScore z:1 tag:3];
        
        lbScore.position=ccp(310, 450);

        /*
        CCSpriteSheet *mgr = [CCSpriteSheet spriteSheetWithFile:@"flight.png" capacity:5];
        [self addChild:mgr z:0 tag:4];
        
        ［CCSprite
        CCSprite *sprite = [CCSprite spriteWithTexture:mgr.texture rect:CGRectMake(0,0,31,30) ];
        [mgr addChild:sprite z:1 tag:5];*/
    }
}

@end
